﻿using System.ComponentModel;

namespace DataGridWatermark
{
   public class ViewModel : INotifyPropertyChanged
   {
      private long? _theRecordCount = null;
      private bool? _theLoadState = null;

      public long? TheRecordCount
      {
         get { return _theRecordCount; }
         set
         {
            _theRecordCount = value;
            OnPropertyChanged("TheRecordCount");
         }
      }

      public bool? TheLoadState
      {
         get { return _theLoadState; }
         set
         {
            _theLoadState = value;
            OnPropertyChanged("TheLoadState");
         }
      }

      public event PropertyChangedEventHandler PropertyChanged;
      private void OnPropertyChanged(string propertyName)
      {
         if (PropertyChanged != null)
         {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
         }
      }
   }
}
